package com.project.nimsen.test;


import org.mortbay.jetty.Server;


public class JettyStart {
	public static final int PORT = 9180;
	public static final String CONTEXT = "/";

	public static void main(String[] args) throws Exception {
		Server server = JettyUtils.buildDebugServer(PORT, CONTEXT);
		server.start();

		System.out.println("点击回车键后可以停止jetty服务");
		if (System.in.read() != 0) {
			server.stop();
			System.out.println("jetty服务已经停止");
		}
		
		
		
		
		
		
//		String strtest="8※a§8※a§8※a§8※a§8※a§8※a§8※a";
//		String[] list = StringUtils.split(strtest, "§");
//		if(list==null||list.length<1)
//			return;
//		for(String str : list){
//			if(StringUtils.isBlank(str))
//				continue;
//			String [] infos = StringUtils.split(str,"※");
//			if(infos==null||infos.length<1)
//				continue;
//			System.out.println("id:"+infos[0]+"    路径信息："+infos[1]);
//		}
	}
}
